← Back

OSC Ambient

Directive.spawn_task [intermediate]

Host-terminal desktop notification, taskbar progress, and pointer shape

OSC Ambient Demo

Host-terminal desktop notification, taskbar progress, and pointer shape

For the full interactive experience:

$ mix raxol.playground

Code
defp progress_command(model) do
  state = progress_state(model.status)

  Directive.spawn_task(fn ->
    IO.write(AdvancedFeatures.report_progress(state, model.progress))
    :ok
  end)
end
demo j/k prev/next / focus demo esc back 33/42 demos